m=function(tag0,attrs0,children0){
    return {tag:tag0,attrs:attrs0,children:children0}
}

var renderHandler=function(dom,vnode){
    var truthTag=document.createElement(vnode.tag);
    for(var key in vnode.attrs){
        truthTag.setAttribute(key,vnode.attrs[key]);
    }
    truthTag.innerText=vnode.children;
    dom.appendChild(truthTag);
}

m.render=renderHandler;

if (typeof module !== "undefined")
    module["exports"] = m
else 
    window.m = m